import axios from '@/libs/api.request'

// 添加场馆
export const addStore = (data) => {
  return axios.request({
    url: '/admin/store/add',
    data,
    method: 'post'
  })
}

// 修改场馆
export const updateStore = (data) => {
  return axios.request({
    url: '/admin/store/update',
    data,
    method: 'post'
  })
}

// 删除场馆
export const deleteStore = (id) => {
  return axios.request({
    url: `/admin/store/delete/${id}`,
    method: 'get'
  })
}

// 场馆列表
export const storeAll = (data) => {
  return axios.request({
    url: '/admin/store/findAll',
    method: 'get'
  })
}

// 场馆列表
export const storeList = (data) => {
  return axios.request({
    url: '/admin/store/page/list',
    data,
    method: 'post'
  })
}
